package net.println.kotlin.chapter4.innerclass;

/**
 * java内部类：
 * java中的非静态内部类持有外部类的状态，依赖外部类就使用非静态
 */
public class InnerClassJava {
    private int a;

    public class Inner{
        public void hello(){
            System.out.println(InnerClassJava.this.a);
        }
    }

    public static void main(String... args) {
        InnerClassJava innerClassJava = new InnerClassJava();
        View view = new View();
        view.setOnClickListener(new OnClickListener() {
            public void onClick() {

            }
        });
    }
}
